package com.jerry.shop.service.impl;

import com.jerry.shop.bean.Seller;
import com.jerry.shop.mapper.SellerMapper;
import com.jerry.shop.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    SellerMapper sellerMapper;

    @Override
    public Seller findSellerById(Integer id) {
        return sellerMapper.getSellerById(id);
    }

    @Override
    public Seller login(String username, String password){
        return sellerMapper.getSellerByUsernameAndPassword(username, password);
    }

}
